<!-- eslint-disable vue/multi-word-component-names -->
<script setup lang="ts">
defineProps<{
  modelValue?: number
  msg?: string
}>()

const emit = defineEmits<{
  (e: 'update:modelValue', num: number): void
  (e: 'update:msg', msg: string): void
}>()
</script>
<template>
  <div>----子组件-----</div>
  <p>count的显示：{{ modelValue }}</p>
  <p>msg的显示{{ msg }}</p>
  <button @click="emit('update:modelValue', 200)">修改count</button>
  <button @click="emit('update:msg', 'hello vue3')">修改msg</button>
  <hr />
</template>
